import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

export default defineConfig({
  plugins: [uni()],
  server: {
    proxy: {
      '/api/movie': {
        // target: 'http://api.maoyan.com',
		target: 'https://m.maoyan.com',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api\/movie/, '')
      }
    }
  }
})